//package com.lsq.tucao.login.handler;
//
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.HandlerInterceptor;
//import javax.servlet.http.HttpServletRequest;
//import javax.servlet.http.HttpServletResponse;
//
///**
// * @version 1.0
// * @Author: linshouqiang
// * @Description:
// * @Date: Created in 21:59 2021/3/21
// */
//@Slf4j
//@Configuration
//public class HttpResponseInterceptorHandler implements HandlerInterceptor {
/**
 跨域问题配置 已在网关处配置
 */
//    @Override
//    public boolean preHandle(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, Object handler) {
//        //解决前端跨域访问带sessionId后 访问后端服务失败的问题
//        httpServletResponse.setHeader("Access-Control-Allow-Origin", httpServletRequest.getHeader("Origin"));
//        httpServletResponse.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
//        httpServletResponse.setHeader("Access-Control-Allow-Credentials", "true");
//        return true;
//    }
//}
